<?php
class MemberAction extends Model {

	protected $_validate = array(
		
	);


	public function register($nikename) {

	}

	/**
	 * 验证昵称是否存在
	 * @param  [type] $nikename [description]
	 * @return [type]           [description]
	 */
	public function checkNickname($nikename) {
		$uid = $this->where('nikename' =>$nikename)->getField('uid');
		if($uid > 0 ) {
			return false;
		}
		return true;
	}
}